<!DOCTYPE html>
<html>
<head>
<title>Notifications</title>
<?php
$login = $_GET ["login"];
echo '<meta charset="utf-8" HTTP-EQUIV="Refresh"';
echo '	CONTENT="8; URL=http://fr-d134685.groupinfra.com/showroom/iBeacon_project/iBeacon_project/web/client_notifications1.php?login=' . $login . '">';
?>
<meta name="viewport" charset="utf-8"
	content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="../css/bootstrap.min.css" rel="stylesheet" media="screen">
<!-- My style -->
<link href="../css/bootstrap.css" rel="stylesheet" media="screen">
<link href="../css/alert.css" rel="stylesheet">
<link href="../css/notification.css" rel="stylesheet">
</head>
<body>
	<div class="container">
		<div class="row">
			<br />
			<div
				class="col-xs-6 col-xs-offset-3 col-sm-6 col-md-3 col-lg-offset-4">
				<img class="img-responsive" src="../img/zodio.gif"
					style="border-radius: 8px;">
			</div>

			<br /> <br />

			<div class="col-md-12">
				<h2
					style="font-family: Helvetica neue; color: white; visibility: hidden;">
					<b>-</b>
				</h2>
				<div class="alert-message warning alert-dismissable">
					<span class="glyphicon glyphicon-certificate"></span>
						<?php
						$login = $_GET ["login"];
						echo '	<a class="close" href="./client_ne_plus_solliciter.php?login=' . $login . '" data-dismiss="alert"';
						echo '		aria-hidden="true"><i class="glyphicon glyphicon-remove"></i></a>';
						echo '<a href="./client_bienvenue_colis.php?login=' . $login . '"><strong>Bienvenue chez Zodio !</strong>';
						echo ' Votre colis est pret !</a>';
						?>
				
				</div>
					<?php
					require_once ("../services/ResponsableService.php");
					
					$responsableService = new ResponsableService ();
					
					$_SESSION ['promoNonLu'] = $responsableService->getPromoNonLuClient ( "1" );
					
					$listPromoClient = $_SESSION ['promoNonLu'];
					$login = $_GET ["login"];
					if ($listPromoClient != null) {
						foreach ( $listPromoClient as $historique ) {
							$numPromo = $historique->getNumPromo ();
							$article = $responsableService->getArticlePromo ( $numPromo );
							echo ' <div class="alert-message warning alert-dismissable">';
							echo ' 	<span class="glyphicon glyphicon-certificate"></span> <a';
							echo ' 	class="close" href="../action/enleverNotifAction.php?login=' . $login . '&numPromo=' . $numPromo . '&numClient=1" data-dismiss="alert" aria-hidden="true"><i';
							echo ' 		class="glyphicon glyphicon-remove"></i></a>';
							echo '		<a href="./client_affichage_promo.php?id=' . $article->getNumArticle () . '&login=' . $login . '"><strong>Vous avez recu une promotion !</strong>';
							echo ' 		Profitez en elle est exclusivement pour vous !</a>';
							echo ' </div>';
						}
					}
					?>
				</div>
		</div>
	</div>

</body>
<footer>
	<script src="http://code.jquery.com/jquery.js"></script>
	<script src="../js/bootstrap.js"></script>
</footer>
</html>